# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-online-accounts
pkgver=3.36.0
pkgrel=0
pkgdesc="Single sign-on framework for GNOME"
url="https://wiki.gnome.org/Projects/GnomeOnlineAccounts"
arch="all !mips64" # limited by webkit2gtk
license="GPL-2.0-or-later"
depends="dbus:org.freedesktop.Secrets"
makedepends="gnome-desktop-dev libxslt itstool libxml2-utils
	webkit2gtk-dev json-glib-dev rest-dev libsecret-dev
	docbook-xsl docbook-xml gobject-introspection-dev vala gtk-doc"
subpackages="$pkgname-static $pkgname-dev $pkgname-lang $pkgname-doc $pkgname-dbg"
source="https://download.gnome.org/sources/gnome-online-accounts/${pkgver%.*}/gnome-online-accounts-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-media-server \
		--enable-lastfm \
		--enable-documentation \
		--enable-vala
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="2d04ea016c1bace9a2cb6ef7a6539c7f878cfa9b309394b18ed692ef1b9b73bf5f93a3f9edcb74170f1be4823a5c9ac6cde3b4e7245906e1b4e130d33eeb1c81  gnome-online-accounts-3.36.0.tar.xz"
